<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<link href="<c:url value='/admin/css/custom.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/admin/css/style.css'/>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<c:url value='/resources/js/jquery-1.7.2.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/My97DatePicker/WdatePicker.js'/>"></script>
<script type="text/javascript">
function checkStock() {
	currentPrice = document.getElementById("currentPrice");
	//content = document.getElementById("newsContent");
	if (currentPrice.value.length == 0) {
		alert("股票现价不能为空");
		return false;
	}
	return true;
}
</script>
<style type="text/css">
<!--
body {
	background: #ffffff;
	margin-top:10px;
	margin-left:5px;
	margin-right:5px;
}
-->
</style>
<body>
<div class="EpmsSubTitle"><p><b>行情管理</b></p>
</div>
<form action="updateStockConf.action" method="post" onsubmit="return checkStock();">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="EpmsTable">
	<tr>
		<td class=EpmsTdTitle>期数</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.periods" type="text" class="text" 
			id="periods" size="16" value="${stockInfo.periods}"/>
			<input type="hidden" value="${stockInfo.id}" name="stockInfo.id"/>
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>开盘价</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.openingPrice" type="text" id="openingPrice" class="text"
			size="16" value="${stockInfo.openingPrice}"/>（元）
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>收盘价</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.closingPrice" type="text" id="closingPrice" class="text"
			size="16" value="${stockInfo.closingPrice}"/>（元）
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>最高价</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.highestPrice" type="text" id="highestPrice" class="text"
			size="16" value="${stockInfo.highestPrice}"/>（元）
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>最低价</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.bottomPrice" type="text" id="bottomPrice" class="text"
			size="16" value="${stockInfo.bottomPrice}"/>（元）
		</td>
	</tr>
	<tr>
		<td class=EpmsTdTitle>现价</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.currentPrice" type="text" id="currentPrice" class="text"
			size="16" value="${stockInfo.currentPrice}"/>（元）
		</td>
	</tr>
	
	<tr>
		<td class=EpmsTdTitle>交易量</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.tradingCapacity" type="text" id="tradingCapacity" class="text"
			size="16" value="${stockInfo.tradingCapacity}"/>
		</td>
	</tr>	
	<tr>
		<td class=EpmsTdTitle>时间</td>
		<td class="EpmsTdNoColor">
			<input name="stockInfo.createDate" type="text" id="createDate" class="text"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
			size="16" value="${stockInfo.createDate}"/>
		</td>
	</tr>
	<tr>
		<td colspan="9" align="center">
			<input type="submit" name="button" id="button" value="发布" class="inputSubmit" />
		</td>
	</tr>
</table>
</form>
</body>



<%-- <%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<script type="text/javascript" src="<c:url value='/resources/js/jquery-1.7.2.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/My97DatePicker/WdatePicker.js'/>"></script>
<h3>行情管理</h3>
<form action="updateStockConf.action" method="post">
<table width="400" border="0" cellpadding="0" cellspacing="0"
	style="margin-left: 300px; line-height: 32px; margin-top: 10px; color: #676767;">
	<tr>
		<td width="75">期数：</td>
		<td width="142"><input name="stockInfo.periods" type="text" class="text"
			id="periods" size="16" value="${stockInfo.periods}"/></td>
		<td width="183"><input type="hidden" value="${stockInfo.id}" name="stockInfo.id"/></td>
	</tr>
	<tr>
		<td>开盘价：</td>
		<td><input name="stockInfo.openingPrice" type="text" id="openingPrice" class="text"
			size="16" value="${stockInfo.openingPrice}"/>（元）
		</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>收盘价：</td>
		<td>
			<input name="stockInfo.closingPrice" type="text" id="closingPrice" class="text"
			size="16" value="${stockInfo.closingPrice}"/>（元）
		</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>最高价：</td>
		<td>
			<input name="stockInfo.highestPrice" type="text" id="highestPrice" class="text"
			size="16" value="${stockInfo.highestPrice}"/>（元）
		</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>最低价：</td>
		<td>
			<input name="stockInfo.bottomPrice" type="text" id="bottomPrice" class="text"
			size="16" value="${stockInfo.bottomPrice}"/>（元）
		</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>现价：</td>
		<td><input name="stockInfo.currentPrice" type="text" id="currentPrice" class="text"
			size="16" value="${stockInfo.currentPrice}"/></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>交易量：</td>
		<td><input name="stockInfo.tradingCapacity" type="text" id="tradingCapacity" class="text"
			size="16" value="${stockInfo.tradingCapacity}"/></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>时间：</td>
		<td><input name="stockInfo.createDate" type="text" id="createDate" class="text"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
			size="16" value="${stockInfo.createDate}"/></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" value="提交" /></td>
		<td>&nbsp;</td>
	</tr>

</table>
</form> --%>